﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Mvvm;

namespace DiagramDesigner.Module.Toolbar.ViewModels
{
    public class ToolbarViewModel : BindableBase
    {
        public ToolbarViewModel()
        {
            ExitCommand = new DelegateCommand(Exit);
        }

        private void Exit()
        {
            Application.Current.Shutdown();
        }

        public DelegateCommand ExitCommand { get; private set; }
    }
}
